package cn.fulong.smebj.mapper;

import cn.fulong.smebj.entity.Answer;
import cn.fulong.smebj.entity.Information;
import cn.fulong.smebj.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

@Mapper
public interface InformationMapper  extends BaseMapper<Information> {

    @Select("select * from information")
    IPage<Information>  queryList(IPage ipage);

    @Select("select * from information where title LIKE CONCAT('%',#{title},'%')")
    List<Map<String,Object>> search(@Param("title") String title);
}